package com.crm.CLdriving.po;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("news")
public class NewsPO {

    @TableId(value="id",type = IdType.AUTO)
    private int id;//新闻ID

    private Date createTime;//发布时间
    private Date updateTime;//更新时间

    private String title;//标题

    private String author;//发布者用户名

//    private String coverImage;//封面图片url


    private String content;//文章内容

//    private Integer top;
//    private Integer categoryId;
//    private Integer status;
//    private Integer recommended;
//    private Integer slider;
//    private String sliderImg;
//    private Integer original;
//
//    private String description;//摘要描述
//
//    private String keywords;
//    private Integer comment;

    @TableField(exist = false)
    private Integer lookCount = 0;//浏览数
    @TableField(exist = false)
    private Integer commentCount = 0;//评论数
    @TableField(exist = false)
    private Integer loveCount = 0;//点赞数


}
